package com.liao.ticket.service;

import com.liao.ticket.vo.AirportVo;
import com.liao.ticket.vo.Result;
import com.liao.ticket.vo.params.AirportParams;

import java.util.List;

public interface AirportService {
    AirportVo oneAirportVo(Long id);

    List<AirportVo> listAirportVoByPlace(String placeName);

    List<AirportVo> listAirportVoByName(String name);

    List<AirportVo> listAirportVoByPlaceOrName(String name);

    List<AirportVo> listAirportVoByPid(Integer id);

    Result addOne(AirportParams airportParams);

    Result updateOneById(AirportParams airportParams);

    Result updateListPlaceNameByPid(AirportParams airportParams);

    Result deleteOneById(Long id);

    Result deleteListByPid(Integer id);
}
